﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GeologicalDrillTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog=new OpenFileDialog();
            openFileDialog.Filter = "所有图像文件|*.bmp;*.pcx;*.png;*.jpg;*.gif";
            openFileDialog.Title = "打开图像文件";
            string imgPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"Image","图片.jpg");
            textBox1.Text = imgPath;
            pictureBox1.ImageLocation = imgPath;
        }
    }
}
